package com.syni.mdd.sjb.marketing.basemarket.utils.cps.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class ProductCreateDto {

    private ProductCenter productCenter;
    private Map<String,String> headerMap;

    @Data
    public static class ProductCenter{
        //觅东东平台默认是2
        private Integer platform = 2;
        private String ownerId;
        private String productId;
        private String productCenterId;

    }

    private List<DisProductSkuList> disProductSkuList = new ArrayList<>();

    @Data
    public static class DisProductSkuList{
        private Sku sku;
        private ProductDistribution productDistribution;
    }

    @Data
    public static class Sku{
        private Integer stock;
        private Double price;
        private Double originPrice;
        private String name;
        private String icon;
    }

    @Data
    public static class ProductDistribution{
        //目前只有比例分销
        private Integer type = 1;
        private String rate;
    }

    private Product productDTO;

    @Data
    public static class Product{
        private String name;
        private String description;
        private List<ProductImgData> detailImgList = new ArrayList<>();
        private List<ProductImgData> bannerList = new ArrayList<>();
    }


}
